-- 安装 blink.cmp
return {
	"Saghen/blink.cmp",
	event = { "BufReadPost", "BufNewFile" },
	version = "1.*",
	build = "cargo build --release", -- 如果需要编译
	dependencies = {
		"hrsh7th/nvim-cmp", -- 确保基础补全引擎已安装
		"neovim/nvim-lspconfig", -- 确保 LSP 支持
	},
	opts = {
		completion = {
			documentation = {
				auto_show = true,
			},
		},
		keymap = {
			["<C-u>"] = { "scroll_documentation_up", "fallback" },
			["<C-d>"] = { "scroll_documentation_down", "fallback" },
			["<C-n>"] = { "select_next", "fallback" },
			["<C-p>"] = { "select_prev", "fallback" },
			-- 如果要回车确定补全项，在 "fallback" 前面添加 "accept"，<C-y> 是默认确定补全项
		},
		signature = {
			enabled = true,
		},
		cmdline = {
			completion = {
				menu = {
					auto_show = true,
				},
			},
		},
		sources = {
			providers = {
				snippets = { score_offset = 1000 },
			},
		},
	},
}
